package io.unicorn.modules.water.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.LinkedHashMap;
import java.util.Map;

/**
 * ${comments}
 * 
 * @author LNCG
 * @email LNCG@USTL.EDU.CN
 * @date 2022-03-10 10:58:55
 */
@Data
@TableName("Gather_DB.dbo.T_Meter_Archives")
public class MeterArchivesEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	@TableId(type = IdType.ASSIGN_UUID)
	@ExcelProperty(value = "唯一码",index = 22)
	private String unkey;

	@ExcelProperty(value = "营业公司",index = 0)
	private String areaId;

	@ExcelProperty(value = "营业所",index = 1)
	private String unitWId;

	@ExcelProperty(value = "物业小区",index = 2)
	private String proName;

	@ExcelProperty(value = "客户编号",index = 3)
	private String clientId;

	@ExcelProperty(value = "册本号",index = 4)
	private String clientNo;

	@ExcelProperty(value = "抄表员",index = 5)
	private String staffName;

	@ExcelProperty(value = "表卡名称",index = 6)
	private String meterCardTitle;

	@ExcelProperty(value = "表卡地址",index = 7)
	private String meterCardAddress;

	@ExcelProperty(value = "水表厂家",index = 8)
	private String meterCompany;

	@ExcelProperty(value = "水表口径",index = 9)
	private String meterCaliber;

	@ExcelProperty(value = "表号",index = 10)
	private String meterId;

	@ExcelProperty(value = "表封号",index = 11)
	private String meterSealNo;

	@ExcelProperty(value = "管径",index = 12)
	private String pipeDiameter;

	@ExcelProperty(value = "表位置",index = 13)
	private String meterPosition;

	@ExcelProperty(value = "水表型号",index = 14)
	private String meterType;

	@ExcelProperty(value = "通讯协议（表卡信息中增加）",index = 15)
	private String meterProtocol;

	@ExcelProperty(value = "装换表日期",index = 16)
	private String changeDate;

	@ExcelProperty(value = "用水性质",index = 17)
	private String waterCharacter;

	@ExcelProperty(value = "用户类型",index = 18)
	private String clientType;

	@ExcelProperty(value = "移动电话",index = 19)
	private String mobileNo;

	@ExcelProperty(value = "表号变更次数",index = 20)
	private String meterIdChanges;

	@ExcelProperty(value = "表封号号变更次数",index = 21)
	private String meterSealNoChanges;

	private String desc1;
	private String desc2;
	private String desc3;
	private String desc4;
	private String desc5;
	private String desc6;
	private String desc7;
	private String desc8;
	private String desc9;
	private String desc10;

	public static Map<String, String> getHeadName(){
		Map<String, String> headMap = new LinkedHashMap<String, String>();

		headMap.put("areaId","营业公司");
		headMap.put("unitWId","营业所");
		headMap.put("proName","物业小区");
		headMap.put("clientId","客户编号");
		headMap.put("clientNo","册本号");
		headMap.put("staffName","抄表员");
		headMap.put("meterCardTitle","表卡名称");
		headMap.put("meterCardAddress","表卡地址");
		headMap.put("meterCompany","水表厂家");
		headMap.put("meterCaliber","水表口径");
		headMap.put("meterId","表号");
		headMap.put("meterSealNo","表封号");
		headMap.put("pipeDiameter","管径");
		headMap.put("meterPosition","表位置");
		headMap.put("meterType","水表型号");
		headMap.put("meterProtocol","通讯协议（表卡信息中增加）");
		headMap.put("changeDate","装换表日期");
		headMap.put("waterCharacter","用水性质");
		headMap.put("clientType","用户类型");
		headMap.put("mobileNo","移动电话");
		headMap.put("meterIdChanges","表号变更次数");
		headMap.put("meterSealNoChanges","表封号号变更次数");
		headMap.put("unkey","唯一码");

		/*
		headMap.put("desc1","");
		headMap.put("desc2","");
		headMap.put("desc3","");
		headMap.put("desc4","");
		headMap.put("desc5","");
		headMap.put("desc6","");
		headMap.put("desc7","");
		headMap.put("desc8","");
		headMap.put("desc9","");
		headMap.put("desc10","");
		*/
		return headMap;
	}
}
